/* For Webkit-based browsers (Chrome, Safari and Opera) */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* For IE, Edge and Firefox */
.scrollbar-hide {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

.risk-modal-wrapper .ant-modal-content {
  background: linear-gradient(to bottom, #c6d6f1 0%, #ffffff 50%);
  border-radius: 24px 24px 24px 24px;
}

.hexagon {
  position: relative;
  border: 1px dashed #ccc;
  border-radius: 10px;
}

.risk-modal-wrapper .ant-modal-content {
  background-color: #f5f9ff !important;
  padding: 0;
}

/* Markdown内容样式 */
.markdown-content {
  white-space: pre-line;
  word-break: break-word;
}

.markdown-content p {
  margin-bottom: 1em;
}

.markdown-content ul,
.markdown-content ol {
  margin-left: 2em;
  margin-bottom: 1em;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
  margin-top: 1em;
  margin-bottom: 0.5em;
  font-weight: bold;
}

.markdown-content a {
  color: #356dee;
  text-decoration: underline;
}

.markdown-content blockquote {
  border-left: 4px solid #ddd;
  padding-left: 1em;
  margin-left: 0;
  color: #666;
}

.markdown-content code {
  background-color: #f0f0f0;
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-family: monospace;
}

.markdown-content pre {
  background-color: #f0f0f0;
  padding: 1em;
  border-radius: 5px;
  overflow-x: auto;
}

.markdown-content table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 1em;
}

.markdown-content th,
.markdown-content td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

.markdown-content th {
  background-color: #f2f2f2;
}

.markdown-content img {
  max-width: 100%;
  height: auto;
}

/* 数据来源列表样式 */
.data-source-list {
  padding: 10px;
}

.data-source-detail {
  padding: 10px;
  width: 100%;
}

/* 数据来源弹窗样式 */
.data-source-modal {
  width: 95% !important;
  max-width: 1800px !important;
}

.data-source-modal .ant-modal-body {
  max-height: 85vh;
  padding: 0;
}

.data-source-modal .ant-modal-content {
  height: auto;
}

.data-source-container {
  width: 100%;
  overflow: hidden;
}

/* 表格容器样式 */
.data-source-table-container {
  width: 100%;
  overflow-x: auto;
  overflow-y: auto;
  max-height: 65vh;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
}

/* 表格头部样式 */
.data-source-table-header {
  display: table;
  table-layout: fixed;
  width: 100%;
  min-width: 2000px;
  background-color: #3a7bec;
  color: white;
  font-weight: bold;
  position: sticky;
  top: 0;
  z-index: 10;
}

.data-source-table-header-cell {
  display: table-cell;
  padding: 15px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  white-space: normal;
  word-break: break-word;
  vertical-align: middle;
  height: auto;
  min-height: 60px;
}

.data-source-table-header-cell:last-child {
  border-right: none;
}

/* 表格内容样式 */
.data-source-table-body {
  display: table;
  table-layout: fixed;
  width: 100%;
  min-width: 2000px;
}

.data-source-table-row {
  display: table-row;
  border-bottom: 1px solid #e0e0e0;
  background-color: #f9f9f9;
}

.data-source-table-row:nth-child(even) {
  background-color: #ffffff;
}

.data-source-table-row:hover {
  background-color: #f0f7ff;
}

.data-source-table-cell {
  display: table-cell;
  padding: 15px;
  border-right: 1px solid #e0e0e0;
  white-space: normal;
  word-break: break-word;
  vertical-align: middle;
  height: auto;
  min-height: 50px;
  line-height: 1.5;
}

.data-source-table-cell:last-child {
  border-right: none;
}

/* 长文本字段特殊处理 */
.data-source-table-cell .markdown-content {
  max-height: 200px;
  overflow-y: auto;
  padding: 5px;
  border: 1px solid #f0f0f0;
  border-radius: 4px;
  background-color: #fafafa;
}

/* 问题详情折叠面板样式 */
.data-source-collapse {
  margin-top: 20px;
  border: none;
  background: transparent;
}

.data-source-collapse .ant-collapse-item {
  margin-bottom: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.data-source-collapse .ant-collapse-header {
  background-color: #f0f7ff;
  padding: 12px 16px;
  font-weight: bold;
  color: #356dee;
}

.data-source-collapse .ant-collapse-content {
  border-top: 1px solid #e0e0e0;
}

.data-source-collapse .ant-collapse-content-box {
  padding: 16px;
}

/* 问题详情内容样式 */
.problem-detail {
  padding: 10px;
}

.detail-row {
  display: flex;
  margin-bottom: 10px;
  padding: 8px 5px;
  border-bottom: 1px solid #f0f0f0;
}

.detail-label {
  font-weight: bold;
  width: 120px;
  flex-shrink: 0;
  color: #333;
}

.detail-value {
  flex: 1;
}

.detail-section {
  margin-top: 20px;
  padding: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background-color: #f9f9f9;
}

.detail-section-title {
  font-weight: bold;
  margin-bottom: 12px;
  color: #356dee;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 8px;
}

.detail-section-content {
  padding: 5px;
}

/* 图片中的表格样式 */
.audit-problem-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.audit-problem-table th {
  background-color: #3a7bec;
  color: white;
  padding: 12px 15px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.audit-problem-table th:last-child {
  border-right: none;
}

.audit-problem-table td {
  padding: 10px 15px;
  border: 1px solid #e0e0e0;
}

.audit-problem-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* 弹窗大小调整 */
.risk-modal-large .ant-modal-body {
  max-height: 70vh;
  overflow-y: auto;
}

.risk-modal-large .ant-modal-content {
  width: 90%;
  max-width: 1200px;
}
